<?php
/**
 * 小邮筒订单
 */
namespace soa\minpost\order\v1;

use soa\client;
class conn  extends client{
	/**
	 * 服务地址
	 * @var string
	 */
	public $service_url = 'http://mp.kuaidihelp.com/';
	/**
	 * 服务名称
	 * @var string
	 */
	protected $service_name = 'kuaidihelp_mp';

	//与第三方品台订单关联
	public function set($order_id,$third_order_id,$third_platform){
		return $this->post("api/cloudPrint/order/v1/conn/set",compact('order_id','third_order_id','third_platform'));
	}

	//获取第三方关联信息
	public function getConnInfo($order_id){
		return $this->post("api/cloudPrint/order/v1/conn/getConnInfo",compact('order_id'));
	}

	//根据第三方订单获取订单信息
	public function getOrderByThird($third_order_id,$third_platform){
		return $this->post("api/cloudPrint/order/v1/conn/getOrderByThird",compact('third_order_id','third_platform'));
	}
}